package org.itzixi.pojo.bo;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RegistLoginBO {
    @NotBlank(message = "手机号不能为空")
    @Length(max = 11, min = 11, message = "手机号长度不正确")
    private String mobile;
    @NotBlank(message = "验证码不能为空")
//    @Length(max = 6, min = 6, message = "验证码长度不正确")
    private String smsCode;
    private String nickname;
}
